﻿using System;
using System.Collections.Generic;
using System.Linq;
using Volo.Abp.Settings;
using Xms.Abp.Settings;
using Xms.Abp.Validation.StringValues;

namespace Xms.Abp.Smsing;

public abstract class SupplierSmsSettings : SettingsBase
{
    public virtual string SecretId => GetValue();

    [SettingValue(valueType: typeof(TextAreaStringValueType))]
    public virtual string SecretKey => GetValue();

    public virtual string Sign => GetValue();

    public virtual bool IsEnabled => GetValue<bool>();

    public virtual SettingsDictionary<string> SmsCodes => GetDictionary();
}
